//Ponit.hpp
#ifndef _POINT_HPP_
#define _POINT_HPP_
#include <iostream>
using namespace std;
class Point {
    private:
        double x;   //点的x坐标
        double y;   //点的y坐标

    public:
        Point() {//无参构造
            x = 0;
            y = 0;
        }

        Point(double x, double y) {//带参构造
            this->x = x;
            this->y = y;
        }

        Point(const Point& point) {//拷贝构造
            this->x = point.x;
            this->y = point.y;
        }

        ~Point() {}//析构
        //以下为getter和setter
        void setX(double x) {
            this->x = x;
        }

        double getX() {
            return this->x;
        }

        void setY(double y) {
            this->y = y;
        }

        double getY() {
            return this->y;
        }
};
#endif